import request from "../utils/request";

/**
 *  收支明细
 */
//查询明细
export async function getIncomeDetails(params) {
    return await request.post('system/api/getIncomeList', params)
}

//合计纯收入
export async function getIncomeTotalProfit(params) {
    return await request.get('system/api/getIncomeTotal', {params})
}

//收支明细列表查询
export async function getIncomeList(params) {
    return await request.post('system/api/incomeList', params)
}

//收支明细列表-合计
export async function getIncomeTotal(params) {
    return await request.post('system/api/incomeTotal', params)
}

/**
 *  纯利润表
 */
//纯利润列表查询
export async function getProfitList(params) {
    return await request.get('system/api/profitList', {params})
}

//纯利润合计
export async function getProfitListTotal(params) {
    return await request.get('system/api/profitListTotal', {params})
}

//费用修改
export async function updateProfit(params) {
    return await request.post('system/api/updateProfit', params)
}

//费用新增
export async function addProfit(params) {
    return await request.post('system/api/addProfit', params)
}

/**
 *  系统消费记录
 */

//消费记录
export async function getConsumeList(params) {
    return await request.get('system/api/consumeList', {params})
}
//消费记录合计
export async function getConsumeListTotal(params) {
    return await request.get('system/api/consumeListTotal', {params})
}
